package com.itic.appbase.framework.type;

public enum UserShareType {
	
	
	App("app","分享app"),Good("good","分享商品");
	
	private String type;
	
	private String name;

	UserShareType(String type, String name) {
		this.type = type;
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public UserShareType getUserShareType(String type) {
		UserShareType userShareType = null;
		switch (type) {
		case "app":
			userShareType = userShareType.App;
			break;
		case "good":
			userShareType = userShareType.Good;
			break;
		}
		return userShareType;
		
	}
	
	
}
